package com.smh.a03DateDemo3;

import java.time.ZoneId;
import java.util.Set;

public class ZoneIdDemo1 {
    public static void main(String[] args) {

        Set<String> zoneId = ZoneId.getAvailableZoneIds();
        System.out.println(zoneId);
        System.out.println(zoneId.size());

        //获取时区
        ZoneId zoneId1 = ZoneId.systemDefault();
        System.out.println(zoneId1.getId());

        ZoneId id = ZoneId.of("Asia/Shanghai");
        System.out.println(id);
    }
}
